﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Evaluate/Evaluate.master" AutoEventWireup="true"
    CodeFile="AwardListD.aspx.cs" Inherits="Evaluate_AwardListD" StylesheetTheme="Content" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ul class="topmenu">
        <li>年份：<asp:DropDownList ID="YearList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="YearList_SelectedIndexChanged">
        </asp:DropDownList>
        </li>
        <li>
            <asp:RadioButtonList ID="rbType" runat="server" AutoPostBack="True" RepeatDirection="Horizontal"
                OnSelectedIndexChanged="rbType_SelectedIndexChanged">
                <asp:ListItem Selected="True" Value="2">大队</asp:ListItem>
                <asp:ListItem Value="3">中队</asp:ListItem>
            </asp:RadioButtonList>
        </li>
        <li><a href="AwardNewD.aspx">添加项目</a></li>
    </ul>
    <div class="clear">
    </div>
    <asp:GridView ID="UserGrid" runat="server" DataKeyNames="AwardId" OnRowDataBound="UserGrid_RowDataBound"
        Width="100%" Caption="<span>工作奖惩项目列表</span>" OnRowDeleting="UserGrid_RowDeleting">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="30px" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server" ForeColor="#666666"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="项目名称">
                <ItemTemplate>
                    <asp:Label ID="AwardName" runat="server" Text='<%# Eval("AwardName") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="日期">
                <ItemTemplate>
                    <asp:Label ID="AwardDate" runat="server" Text='<%# Eval("AwardDate","{0:d}") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemStyle HorizontalAlign="Right" />
                <ItemTemplate>
                    <asp:HyperLink ID="ButtonEdit" runat="server" NavigateUrl='<%# Eval("AwardId","AwardNewD.aspx?AwardId={0}") %>'>编辑</asp:HyperLink>
                    <asp:LinkButton ID="ButtonDelete" runat="server" CommandName="Delete">删除</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle HorizontalAlign="Left" />
    </asp:GridView>
</asp:Content>
